package com.zeba;

import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;

import com.zeba.DashboardActivityTransitionManager.DashboardActivityMap;


public class DashBoardListener implements AdapterView.OnItemClickListener {
	
	private HomeDashboardActivity activity;

	public void setCallerActivity(HomeDashboardActivity activity){
		this.activity = activity;
	}
	
	public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
		
		Intent intent = DashboardActivityTransitionManager.getIntent(DashboardActivityMap.getEnum(position+1),activity);
		activity.startActivity(intent);
	
	}
}

